package com.caipiao;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.caipiao.crawler.daletou.DaletouResultPage;
import com.caipiao.crawler.daletou.DaletouResultPipeline;
import com.caipiao.crawler.mapper.LotteryNumberMapper;
import com.caipiao.crawler.mapper.LotteryTicketMapper;
import com.caipiao.crawler.model.LotteryNumber;
import com.caipiao.crawler.model.LotteryTicket;
import com.caipiao.crawler.run.*;
import com.caipiao.crawler.zhongjiangRule.ZhongJiangRule;
import com.caipiao.util.DBTools;
import lombok.Data;
import org.apache.ibatis.session.SqlSession;
import us.codecraft.webmagic.Spider;

import java.util.*;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;

/**
 * Created by lishuai24 on 2018/7/28.
 */
@Data
public class Main {


    public static void main(String []args) {

        Football football = new Football();
        football.runNowMatch();
        football.runDetails();
        football.run();
        LotteryNumberRun lotteryNumberRun = new LotteryNumberRun();
        lotteryNumberRun.run(0);
        lotteryNumberRun.run(1);
        lotteryNumberRun.run(2);
        lotteryNumberRun.run(4);
        lotteryNumberRun.run(5);
    }
}
